package me.zhulu.mail;

import com.alibaba.fastjson.JSON;

import javax.mail.internet.AddressException;
import javax.mail.internet.InternetAddress;

/**
 * Created with IntelliJ IDEA.
 * User: herosea
 * Date: 14-5-15
 * Time: 上午10:19
 * To change this template use File | Settings | File Templates.
 */
public class InternetAddressTest {

    public static void main(String[] args) throws AddressException {
        InternetAddress[] addresses = InternetAddress.parse("nvwashi@wacai.com,fulin@wacai.com");
        System.out.println(JSON.toJSONString(addresses));
    }
}
